package year2019.month0234;

import year2019.month01.Vehicle;

/**
 * @desc 描述
 * create on 2019/1/26 by watson
 */
public class MainTest implements Vehicle {

    public static void main(String[] args) {

        TestA test = new TestB();

        System.out.println(test.say("hey girl"));


        long number = 1021436458679L;
        //原始数二进制
        System.out.println(number);
        //左移一位
//        number = number << 1;
//        System.out.println(number);
        //右移一位
        number = number >> 32;
        System.out.println(number);

    }

}

class TestA{
    protected Object say(String word){
        String reStr = "A:"+word;
        return reStr;
    }
}


class TestB extends TestA{
    public String say(String word){
        String reStr = "B:"+word;
        return reStr;
    }
}
